<?php

CMS::File('form/field/textarea');

class TinyMCE extends Form_Field_Textarea {

	public function output($base, $main = null){
		$tpl = Output::getInstance()->Template(array('tinymce'));
		$tpl->url = CMS::URL('tinymce/js/main/tiny_mce.js',false);
		$tpl->title = $this->title;
		$tpl->value = $this->value;
		$base[] = $this->name;
		$tpl->name = $base;
		return Form_Field::output($base, $tpl);
	}

}
